package com.lxm.action;

import com.alibaba.fastjson.JSONObject;
import com.lxm.entity.SmsSenMsgEntity;
import com.lxm.sevice.SneMsgService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ：Administrator
 * @date :创建时间 2021/12/28 13:03
 */
@Controller
public class SenMsgAction extends ActionBase {
    private final Logger logger = LoggerFactory.getLogger(getClass());
     @Autowired
     private SneMsgService sneMsgService;

    /**
     *
     * @param authCode 认证编码
     * @param id  用户id
     * @return 返回数据
     */
    @RequestMapping(value = "/queryUserSendMsg/{authCode}/{id}" , method = RequestMethod.GET)
    @ResponseBody
    public String  queryUserSendMsgPst(@PathVariable("authCode") String authCode, @PathVariable("id") String id){
        SmsSenMsgEntity smsSenMsgEntity = sneMsgService.queryUserSenMsgById(id);
        return JSONObject.toJSONString(smsSenMsgEntity);
    }


}
